package com.zhn.evsi.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhn.evsi.common.RedisCache;
import com.zhn.evsi.domain.entity.evsi.EvsiSystem;
import com.zhn.evsi.mapper.EvsiSystemMapper;
import com.zhn.evsi.service.IEvsiSystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EvsiSystemServiceImpl extends ServiceImpl<EvsiSystemMapper, EvsiSystem> implements IEvsiSystemService {

    @Autowired
    private RedisCache redisCache;

    @Override
    public void walletSize(Integer num) {

        String username = "1085155177@qq.com";
        redisCache.setCacheObject("Account:WalletSize:" + username, num);
    }
}
